From f1fa117a27c837081d88970661418eb01a90cbb9 Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Sun, 2 Jul 2017 18:18:32 -0500 Subject: [PATCH] Fix valgrind's warning about an uninitialized variable that. --- pcx.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcx.cc b/pcx.cc index 4c3c1bcdd..b8e12f862 100644 --- a/pcx.cc +++ b/pcx.cc @@ -161,7 +161,8 @@ static void data_read(void) { wpt_tmp->description = desc.trimmed(); wpt_tmp->icon_descr = gt_find_desc_from_icon_number(symnum, PCX); - double lat, lon; + double lat = 0; + double lon = 0; if (read_as_degrees || read_gpsu) { human_to_dec(tbuf, &lat, &lon, 1); human_to_dec(nbuf, &lat, &lon, 2); -- 2.30.2